﻿<%@ Page Language="c#" CodeBehind="WorkflowView.aspx.cs" AutoEventWireup="false"
    Inherits="BEGDC.CC.Web.Workflow.WorkflowView" %>

<%@ Register TagPrefix="uc2" TagName="Title" Src="../UserControls/Title.ascx" %>
<%@ Register TagPrefix="uc2" TagName="Menu" Src="../UserControls/Menu.ascx" %>
<%@ Register TagPrefix="uc2" TagName="Banner" Src="../UserControls/Banner.ascx" %>
<%@ Register TagPrefix="uc2" TagName="CVFeedbackPrintCtrl" Src="../UserControls/CV/CVFeedbackPrintCtrl.ascx" %>
<%@ Register TagPrefix="uc2" TagName="PrintCtrl1" Src="../UserControls/CV/CVPrintCtrl.ascx" %>
<%@ Register TagPrefix="uc1" TagName="PrintCtrl" Src="../UserControls/CR/PrintCtrl.ascx" %>
<%@ Register TagPrefix="uc3" TagName="StampCtrl2" Src="../Common/StampCtrl2.ascx" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Workflow View</title>
    <link href="../css/global.css" rel="stylesheet" type="text/css" />
    <link href="../css/flow.css" rel="stylesheet" type="text/css" />
    <link href="../css/footer.css" rel="stylesheet" type="text/css" />
    <link href="../css/style_fu.css" rel="stylesheet" type="text/css" />
    <link href="../css/content/themes/base/jquery-ui.css" rel="stylesheet" type="text/css" />

    <script src="../js/jquery-1.4.4.min.js" type="text/javascript"></script>

    <script src="../js/jquery-ui.min.js" type="text/javascript"></script>

    <script src="../js/jquery.query-2.1.7.js" type="text/javascript"></script>

    <script src="../js/common.js" type="text/javascript"></script>

    <script src="../js/alert.vbs" type="text/vbscript"></script>

    <script src="../js/ccworkflow.js" type="text/javascript"></script>

    <script src="../js/checkform.js" type="text/javascript"></script>

    <script src="../js/workflow.js.aspx" type="text/javascript"></script>

    <script language="javascript" type="text/javascript">
        function OpenCommentPaneView() {
            var obj = window.showModalDialog('../Common/CommonComment.aspx', this, 'dialogHeight:300px;dialogWidth:400px;dialogTop:px;dialogLeft:px;center:Yes;scroll:no;resizable:no;status:no;');
            if (obj == null || obj == '%close%') {
                event.returnValue = false;
            }
            else {
                document.forms[0].tbCommentView.value = obj;
            }
        }
        function GoToNewTab(type) {
            var url = window.location.href;
            url = url.substring(0, url.length - 9);
            if (url.indexOf("&IsSur=Y") == -1) {
                if (document.Form1.tbIsSurvey.value == 'Y') {
                    url = url + "&IsSur=Y";
                }
            }
            if (url.indexOf("&IsMee=Y") == -1) {
                if (document.Form1.tbIsMeetingMinutes.value == 'Y') {
                    url = url + "&IsMee=Y";
                }
            }
            if (url.indexOf("&State") == -1) {
                url = url + "&State=View";
            }
            url = url + "&Type=" + type;
            window.location.href = url;
        }
        function OpenAssignPane(appid) {
            var employeeID = window.showModalDialog("../Common/AssignApp.aspx?appid=" + appid, '', 'dialogHeight=400px;dialogWidth=400px;scroll:no;');
            if (employeeID == '%close%' || employeeID == null) {
                event.returnValue = false;
            }
            else {
                document.Form1.tbOperationContent.value = employeeID;
            }
        }
    </script>

    <script type="text/javascript">
        $(function() {
            $(".TAB_1").children().first().removeClass();
            $(".TAB_1").children().first().addClass("tab_active");

        });
    </script>

</head>
<body>
    <span id="proc"></span>
    <form class="mainbox" id="Form1" method="post" runat="server">
    <table cellspacing="0" cellpadding="0" class="table_center">
        <tr>
            <td>
                <img src="../images/logo2.gif" alt="" />
            </td>
        </tr>
        <tr>
            <td>
                <!--Begin Body-->
                <table border="0" cellpadding="0" cellspacing="0" width="100%">
                    <tr>
                        <td align="right" style="padding-right: 10px" id="workflow-top-container">
                        </td>
                    </tr>
                    <tr>
                        <td align="left" valign="middle">
                            <table class="tabbox" border="0" cellspacing="0" cellpadding="0">
                                <tr class="tabpos">
                                    <td id="tabWorkflow" runat="server">
                                        <%--<a class="tab_link" onclick="javascript: GoToNewTab('Wor');">Workflow</a>--%>
                                    </td>
                                    <td id="tabApplication" runat="server">
                                        <a class="tab_link" onclick="javascript: GoToNewTab('App');">Application</a>
                                    </td>
                                    <td id="tabFeedback" runat="server">
                                        <a class="tab_link" onclick="javascript: GoToNewTab('Fee');">Feedback</a>
                                    </td>
                                    <td id="td_Feedback" runat="server">
                                    </td>
                                    <td id="tabMeetingMinutes" runat="server">
                                        <a class="tab_link" onclick="javascript: GoToNewTab('Mee');">Meeting Minutes</a>
                                    </td>
                                    <td id="td_MeetingMinutes" runat="server">
                                    </td>
                                    <td id="tabAttachment" runat="server">
                                        <%--<a class="tab_link" onclick="javascript: GoToNewTab('Att');">Attachment</a>--%>
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr class="line_border">
                        <td>
                        </td>
                    </tr>
                    <tr id="tr_Title" runat="server">
                        <td>
                            <div class="txt_align_rgt padding5 action_layer">
                                <asp:Label ID="lbTitle" runat="server" Font-Bold="True"></asp:Label>
                                <%--<asp:ImageButton ID="btnResume" runat="server" ImageUrl="../images/bbw_resumeapp.gif"
                                        ToolTip="恢复本申请"></asp:ImageButton>&nbsp;
                                    <asp:ImageButton ID="btnDrawback" runat="server" ImageUrl="../images/bbw_drawback.gif"
                                        ToolTip="取消上一步的操作"></asp:ImageButton>&nbsp;
                                    <asp:ImageButton ID="btnPending" runat="server" ImageUrl="../images/bbw_suspendapp.gif"
                                        ToolTip="挂起申请"></asp:ImageButton>&nbsp;
                                    <asp:ImageButton ID="btnCallback" runat="server" ImageUrl="../images/bb_callback.gif"
                                        ToolTip="撤回申请"></asp:ImageButton>&nbsp;
                                    <asp:ImageButton ID="btnCancel" runat="server" ImageUrl="../images/bbw_cancel.gif"
                                        ToolTip="删除申请"></asp:ImageButton>&nbsp;
                                    <asp:ImageButton ID="btnReAssign" runat="server" ImageUrl="../images/bbw_reassign.gif"
                                        ToolTip="重新分派申请"></asp:ImageButton>&nbsp;
                                    <asp:ImageButton ID="btnModify" runat="server" ImageUrl="../images/bb_modify.gif"
                                        ToolTip="修改申请"></asp:ImageButton>&nbsp;
                                    <asp:ImageButton ID="btnCopy" runat="server" ImageUrl="../images/bbw_copy.gif" ToolTip="复制当前内容到草稿箱">
                                    </asp:ImageButton>--%>
                                <asp:ResourceButton ID="btnCallback" runat="server" Text="Drawback" ToolTip="DrawbackTips"
                                    CssClass="btn workflow-callback" />
                                <asp:ResourceButton ID="btnCancel" runat="server" Text="Cancel" ToolTip="CancelTips" CssClass="btn workflow-cancel" />
                                <div style="display: none">
                                    <asp:ResourceButton ID="btnDrawback" runat="server" Text="Drawback" ToolTip="DrawbackTips"
                                        CssClass="btn workflow-drawback" />
                                    <asp:Button ID="btnModify" runat="server" Text="Modify" CssClass="btn workflow-modify" />
                                    <asp:Button ID="btnCancel1" runat="server" Text="Cancel" CssClass="btn workflow-cancel" />
                                    <asp:Button ID="btnPending" runat="server" Text="Suspend" CssClass="btn workflow-pending" />
                                    <asp:Button ID="btnReAssign" runat="server" Text="ReAssign" CssClass="btn workflow-reassign" />
                                    <asp:Button ID="btnCopy" runat="server" Text="Copy" CssClass="btn workflow-copy" />
                                    <asp:Button ID="btnResume" runat="server" Text="Resume" CssClass="btn workflow-resume" />
                                    <uc1:PrintCtrl ID="PrintCtrl" runat="server"></uc1:PrintCtrl>
                                    <uc2:PrintCtrl1 ID="cvPrintCtrl" runat="server"></uc2:PrintCtrl1>
                                    <uc2:CVFeedbackPrintCtrl ID="cvFeedbackPrintCtrl" runat="server"></uc2:CVFeedbackPrintCtrl>
                                </div>
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <!--MainBody-->
                            <table border="0" cellpadding="0" cellspacing="0" width="100%">
                                <tr>
                                    <td>
                                        <table border="0" cellpadding="0" cellspacing="0" width="100%">
                                            <tr>
                                                <td>
                                                    <asp:PlaceHolder ID="MainBody" runat="server"></asp:PlaceHolder>
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                            </table>
                            <table cellspacing="0" cellpadding="0" width="100%" border="0">
                                <%--图章控件转移到这里--%>
                                <tr>
                                    <td id="workflow-stamp-container" style="padding: 10px;">
                                        <uc3:StampCtrl2 ID="StampCtrl2" runat="server" />
                                    </td>
                                </tr>
                                <tr>
                                    <td class="ar padding_top5 padding_btm20 tab-top-line">
                                        <a class="btn" href="#" title="Goto back to top (返回页面顶部)" style="color: #fff;">Go back
                                            to top</a>
                                    </td>
                                </tr>
                                <%--<tr>
                        <td class="title_list">
                            &nbsp;&nbsp;I Promise (我承诺)
                        </td>
                    </tr>
                    <tr>
                        <td class="padding5 ev-request-footer">
                            <br />
                            1. I have reviewed ASB's Guidelines for Travel, Lodging and Other Promotional Expenses
                            in connection with the planning of this trip.<br />
                            <br />
                            2. As the applicant, I hereby confirm that:<br />
                            <br />
                            <ul class="padding_lft20">
                                <li style="list-style: disc inside">all the attendees are from and chosen/recommended
                                    by the customer.</li>
                                <li style="list-style: disc inside">all the information in the application is accurate.</li>
                                <li style="list-style: disc inside">all the expenses are to be paid directly to the
                                    PDC approved travel agents.</li>
                                <li style="list-style: disc inside">no per diem/cash will be provided to the attendees.</li>
                                <li style="list-style: disc inside">the agenda attached to the application approved
                                    by the Legal Department will be strictly followed.</li>
                            </ul>
                            <br />
                        </td>
                    </tr>--%>
                            </table>
                            <div class="footerbox">
                                &copy; COPYRIGHT 2011 ALCATEL-LUCENT
                            </div>
                        </td>
                    </tr>
                </table>
            </td>
            <td id="td_right" runat="server">
                <asp:TextBox ID="tbCommentView" runat="server" Style="display: none"></asp:TextBox>
                <asp:TextBox ID="tbIsMeetingMinutes" runat="server" Style="display: none">N</asp:TextBox>
                <asp:TextBox ID="tbIsSurvey" runat="server" Style="display: none">N</asp:TextBox>
                <asp:TextBox ID="tbOperationContent" runat="server" Style="display: none"></asp:TextBox>
            </td>
        </tr>
    </table>
    </form>
    <%--页面刷新时显示--%>
    <%--<div id="dialog-message" title="Loading..." style="display: none">
	<p>
	    <br />
	    <span class="workflow-loading"></span>
	    <span>Operation in process, please wait...<br /><br />处理中, 请稍候。。。</span>
	</p>
</div>--%>
    <%--追加Print, Close, Log按钮--%>
    <input type="button" id="workflow-log" style="display: none" />
    <input type="button" id="workflow-close" style="display: none" />
</body>
</html>
